import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DataFlowPracticeComponent } from './containers/data-flow-practice/data-flow-practice.component';
import { DashboardComponent } from './containers/dashboard/dashboard.component';
import { FatherComponent } from './containers/father/father.component';
import { AnimateVoteComponent } from './containers/animate-vote/animate-vote.component';


const routes: Routes = [{
  path: '', redirectTo: 'dashboard', pathMatch: 'full'
}, {
  path: 'dashboard', component: DashboardComponent
}, {
  path: 'todo-list', component: DataFlowPracticeComponent
}, {
  path: 'father', component: FatherComponent
}, {
  path: 'animate-vote', component: AnimateVoteComponent
}];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
